<?php 

$phone = isset($_POST['phone']) && !empty($_POST['phone']) ? $_POST['phone'] : false;
$password = isset($_POST['password']) && !empty($_POST['password']) ? $_POST['password'] : false;
$remember = isset($_POST['remember']) && !empty($_POST['remember']) ? $_POST['remember'] : false;

if ( $phone !== false && $password !== false ){
	$_SESSION['user'] = array('login' => $phone, 'password' => $password);
	header('location: index.php?p=home');
}

?>
